package apps.MyJMRI;
import apps.Apps;

import java.awt.Dimension;
import javax.swing.*;
import jmri.util.JmriJFrame;

public class MyJMRI extends Apps {
	static String MYJMRI_Version = "0.3.3";
	
	public MyJMRI(JFrame frame) {
		super(frame);
	}

	private static final long serialVersionUID = -1608760590560933730L;
	boolean onMac = (System.getProperty("mrj.version") != null);

	protected String line1() {
		return "MyJMRI "+ MYJMRI_Version +" on "+ super.line1() ;
	}

	// Main entry point    
	public static void main(String args[]) {

		// show splash screen early
		splash(true);

		initLog4J();
		log.info(apps.Apps.startupInfo("MyJMRI"));

		setConfigFilename("JmriDemoConfig2.xml", args);
		JmriJFrame f = new JmriJFrame("MyJMRI");   
		Apps apps = new MyJMRI(f);
		createFrame( apps, f);

		JmriJFrame f2 = new MyFirstBrowserJFrame("MyJMRI");
		f2.pack();
		Dimension screen = f2.getToolkit().getScreenSize();
		f2.setLocation(screen.width/5,screen.height/5);
		f2.setVisible(true);
		log.debug("main initialization done");
		splash(false);
	}

	static org.apache.log4j.Category log = org.apache.log4j.Category.getInstance(MyJMRI.class.getName());
}


